<!--
 * @Descripttion: 
 * @version: 
 * @Author: sueRimn
 * @Date: 2022-07-11 10:34:35
 * @LastEditors: sueRimn
 * @LastEditTime: 2022-07-15 16:35:32
-->
<template>
  <div>
    <h3>父组件</h3>
    <p>props:{{ pChild1 }}</p>
    <p>$attrs:{{ $attrs }}</p>
    <child1 v-bind="$attrs" v-on="$listeners"></child1>
  </div>
</template>

<script>
import child1 from "./child1.vue";
export default {
  components: { child1 },
  name: "parent1",
  data() {
    return {};
  },
  props: ["pChild1"],
  inheritAttrs: true,
  mounted() {
    this.$emit("test1");
  },
};
</script>
